//package com.cloud.config;
//
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.redisson.config.SingleServerConfig;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author: create by God of SJF
// * @version: v1.0
// * @description: com.cloud.config
// * @date:2021/2/18
// */
//@Configuration
//public class RedissonConfig {
//    @Bean
//    RedissonClient redissonClient() {
//        Config config = new Config();
//        config.useSentinelServers().setMasterName("mymaster").setPassword("3zxhomBj9d5Za7SugYyAKn")
//
//                .addSentinelAddress("redis://54.222.176.135:9384","redis://54.222.176.135:9383","redis://54.222.176.135:9382");
//
//
////                config.useSingleServer()
////                .setAddress("redis://172.16.16.34:6379");
////            serverConfig.setPassword("zBI6TOMv3SZ43l2");
//        return Redisson.create(config);
//    }
//}
